import { createApp } from 'vue';
// 1. 引入你需要的组件
import { Toast } from 'vant';
import { RadioGroup, Radio } from 'vant';
import { Dialog } from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';

import App from './App.vue'
// 导入路由组件
import router from './router'
//导入字体图标库
import 'font-awesome/css/font-awesome.min.css'
//导入axios
import axios from 'axios'


axios.defaults.baseURL = 'http://localhost:8888/elm';

let app=createApp(App)
//全局挂载axios   可以在各个子组件中通过this.$http使用axios
app.config.globalProperties.$http = axios;
app.use(router)
app.use(Dialog)
app.use(Toast);
app.use(Radio);
app.use(RadioGroup);
app.mount('#app')
